function Student(name,age) {
    this.name = name;
    this.age = age;
    this.introduce = function(){
        console.log('大家好，我叫' + this.name + '，今年' + this.age + '岁');
    };
}
var stu1 = new Student('小明',18);
stu1.introduce();
var stu2 = new Student('小强',19);
stu2.introduce();
var stu3 = new Student('小红',18);
stu3.introduce();